<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="../vue.js"></script>
</head>
<body>
  <div id="app">
    <cpn name="插槽作用域实例01，默认方案">
    </cpn>

    <cpn name="插槽作用域02, 获取内容">
      <template v-slot="props">
        <span>
          {{props.dtools.join(' - ')}}
        </span>
      </template>
    </cpn>

  </div>
  <template id="cpn">
    <div>
      <h1>{{name}}</h1>
      <slot :dtools="tools">
        <ul>
          <li v-for="item in tools">{{item}}</li>
        </ul>
      </slot>
    </div>
  </template>
  <script src="./vue.js"></script>
</body>
</html>